package com.yfqy.app.domain.mapper;

import com.yfqy.app.modules.product.vo.AttributeVO;
import com.yfqy.app.domain.entity.Attribute;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface AttributeMapper {

    int insertSelective(Attribute record);

    Attribute selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Attribute record);

    List<AttributeVO> selectListByNameAndType(@Param("name") String name, @Param("type") Byte type);

    Attribute selectOneByName(@Param("name") String name);

    List<Attribute> selectByIds(@Param("ids") Set<Long> ids);

    List<AttributeVO> selectByCategoryId(@Param("id") Long id);
}